// components/goodList/index.js
const app = getApp();
Component({
  properties: {
    status: {
      type: String,
      value: 0,
    },
    type: {
      type: String,
      value: 0,
    },
    isHide: {
      type: String,
      value: 0,
    },
    bastList: {
      type: Object,
      value: [],
    }
  },
  data: {
    screenWidth: app.globalData.screenWidth,
  },
  methods: {
   /**
   * 商品详情跳转
   */
   goDetail: function (e) {
    let item = e.currentTarget.dataset.items
    if(this.data.type=='event'){
      wx.navigateTo({ url: `/pages/event_detail/index?id=${item.product_id}&acId=${item.id}&public_date=${item.public_date}&state=${item.state}`})
    }else{
      wx.navigateTo({ url: `/pages/goods_details_new/index?id=${item.id}` });
    }
   
   },
  }
})